package com.hrzyit.whistle.comm.injection.module

import com.hrzyit.whistle.comm.service.IContactsService
import com.hrzyit.whistle.comm.service.IDepartmentService
import com.hrzyit.whistle.comm.service.impl.ContactsServiceImpl
import com.hrzyit.whistle.comm.service.impl.DepartmentServiceImpl
import dagger.Module
import dagger.Provides

/**
 * 通讯录管理模块 Module
 * @author YangWei
 * @date 2019/5/6
 */
@Module
open class ContactCenterModule {
    /**
     * 联络人服务接口 Providers
     */
    @Provides
    fun provideIContactsService(service:ContactsServiceImpl):IContactsService {
        return service
    }

    /**
     * 联络单位服务接口 Providers
     */
    @Provides
    fun provideIDepartmentService(service:DepartmentServiceImpl):IDepartmentService {
        return service
    }
}